import request from '@/utils/request'
export default{
   //根据id删除课程
   deleteById(courseId) {
    return request({
      url: `/eduservice/edu-course/${courseId}`,
      method: 'delete'
    })
 },
  //根据条件分页查询
  getListCourse(CourseQuery,current,pagesize) {
    return request({
      url: `/eduservice/edu-course/${current}/${pagesize}`,
      method: 'post',
      data: CourseQuery
    })
 },
  //根据id查询课程发布信息
  coursePublic(eduCourse) {
    return request({
      url: `/eduservice/edu-course/public/change`,
      method: 'post',
      data: eduCourse
    })
 },
   //根据id查询课程发布信息
   getCoursePublicId(courseId) {
    return request({
      url: `/eduservice/edu-course/public/${courseId}`,
      method: 'get'
    })
 },
    //添加或者更新课程信息
    addCourseInfo(courseInfoJson) {
       return request({
         url: `/eduservice/edu-course/add`,
         method: 'post',
         data: courseInfoJson
       })
    },
    //添加课程id查询信息
    getCourseInfoId(courseId) {
      return request({
        url: `/eduservice/edu-course/${courseId}`,
        method: 'get'
      })
   },
    //添加讲师信息
    addTeacherInfo() {
      return request({
        url: `/eduservice/edu-teacher/findAll`,
        method: 'get'
      })
   }
   

}
